package com.lemon.boot.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 李猛
 * @datetime 2024/3/15 13:20
 * @description 类对象
 */
@Getter
@Setter
@ApiModel(value = "部门视图对象-树形数据")
public class TreeDeptVO {
    //主键ID
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //租户ID
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    //父ID
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    //部门名称
    @ApiModelProperty(value = "部门名称")
    private String name;

    //创建人
    @ApiModelProperty(value = "创建人")
    private String createBy;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //修改人
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    //修改时间
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    private Integer status;

    //子部门
    @ApiModelProperty(value = "子部门")
    private List<TreeDeptVO> children;
}
